package com.hckjsec.cloud.service.impl;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.hckjsec.cloud.mapper.AppletsBusinessCostMapper;
import com.hckjsec.cloud.domain.AppletsBusinessCost;
import com.hckjsec.cloud.service.IAppletsBusinessCostService;

/**
 * 申办信息-公证费用Service业务层处理
 * 
 * @author cyt
 * @date 2021-08-23
 */
@Service
public class AppletsBusinessCostServiceImpl implements IAppletsBusinessCostService 
{
    @Autowired
    private AppletsBusinessCostMapper appletsBusinessCostMapper;

    /**
     * 查询申办信息-公证费用
     * 
     * @param id 申办信息-公证费用ID
     * @return 申办信息-公证费用
     */
    @Override
    public AppletsBusinessCost selectAppletsBusinessCostById(Long id)
    {
        return appletsBusinessCostMapper.selectAppletsBusinessCostById(id);
    }

    /**
     * 查询申办信息-公证费用列表
     * 
     * @param appletsBusinessCost 申办信息-公证费用
     * @return 申办信息-公证费用
     */
    @Override
    public List<AppletsBusinessCost> selectAppletsBusinessCostList(AppletsBusinessCost appletsBusinessCost)
    {
        return appletsBusinessCostMapper.selectAppletsBusinessCostList(appletsBusinessCost);
    }

    /**
     * 新增申办信息-公证费用
     * 
     * @param appletsBusinessCost 申办信息-公证费用
     * @return 结果
     */
    @Override
    public int insertAppletsBusinessCost(AppletsBusinessCost appletsBusinessCost)
    {
        return appletsBusinessCostMapper.insertAppletsBusinessCost(appletsBusinessCost);
    }

    /**
     * 修改申办信息-公证费用
     * 
     * @param appletsBusinessCost 申办信息-公证费用
     * @return 结果
     */
    @Override
    public int updateAppletsBusinessCost(AppletsBusinessCost appletsBusinessCost)
    {
        return appletsBusinessCostMapper.updateAppletsBusinessCost(appletsBusinessCost);
    }

    /**
     * 批量删除申办信息-公证费用
     * 
     * @param ids 需要删除的申办信息-公证费用ID
     * @return 结果
     */
    @Override
    public int deleteAppletsBusinessCostByIds(Long[] ids)
    {
        return appletsBusinessCostMapper.deleteAppletsBusinessCostByIds(ids);
    }

    /**
     * 删除申办信息-公证费用信息
     * 
     * @param id 申办信息-公证费用ID
     * @return 结果
     */
    @Override
    public int deleteAppletsBusinessCostById(Long id)
    {
        return appletsBusinessCostMapper.deleteAppletsBusinessCostById(id);
    }

    /**
     * 根据事项和业务编号删除
     *
     * @param id 申办信息-公证费用ID
     * @return 结果
     */
    @Override
    public int deleteAppletsBusinessCostByMattid(AppletsBusinessCost appletsBusinessCost)
    {
        return appletsBusinessCostMapper.deleteAppletsBusinessCostByMattid(appletsBusinessCost);
    }

    /**
     * 根据案件id获取费用map
     *
     * @param id 申办信息-公证费用ID
     * @return 结果
     */
    @Override
    public List<Map<String, BigDecimal>> findCostByMoneyMap(Long businessid) {
        return appletsBusinessCostMapper.findCostByMoneyMap(businessid);
    }
}
